//
//  UIViewController+ZSTopDownHUD.h
//  ZSTopDownHUD.h ZSTopDownHUD.m ZSTopDownView.h ZSHUDSet-master
//
//  Created by safiri on 2018/6/29.
//  Copyright © 2018年 safiri. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ZSTopDownHUD.h"

//NOTE: 若使StatusBar样式改变，要在项目Info.plist文件中添加 View controller-based status bar appearance 并设为 YES。
typedef NS_ENUM(NSUInteger, StatusBarChangeStyleForTDHUD) {
    ChangeDefaultToLightContent, // 默认
    ChangeLightContentToDefault
};

@interface UIViewController (ZSTopDownHUD)

///控制状态栏颜色样式UIStatusBarStyle
@property (nonatomic ,assign) UIStatusBarStyle statusBarStyleForTopDownHUD;

- (void)showTDSuccessHUDAutoHide:(nullable NSString *)text;
- (void)showTDWarningHUDAutoHide:(nullable NSString *)text;
- (void)showTDErrorHUDAutoHide:(nullable NSString *)text;
- (void)showTDMessageHUDAutoHide:(nullable NSString *)text;
- (void)showTDNetHUDAutoHide:(nullable NSString *)text;
- (void)showTDHUDAutoHideWithType:(HUDViewType)type text:(nullable NSString *)hintText;

- (void)showTDHUDAutoHideWithType:(HUDViewType)type
                             text:(nullable NSString *)hintText
             statusBarChangeStyle:(StatusBarChangeStyleForTDHUD)changeStyle;

- (void)showTDHUDAutoHideWithType:(HUDViewType)type
                            image:(nullable UIImage *)hintImage
                             hint:(nullable NSString *)hintText
                    hintTextColor:(nullable UIColor *)textColor
                  backgroundColor:(nullable UIColor *)backgroundColor
             statusBarChangeStyle:(StatusBarChangeStyleForTDHUD)changeStyle;

@end
